# -*- coding: utf-8 -*-

from Simulinux.Core.Element import Element

__all__ = ['Net', 'SEGMENT_HORIZONTAL', 'SEGMENT_VERTICAL']

SEGMENT_HORIZONTAL = 0
SEGMENT_VERTICAL = 1

class Net(Element):
    class Segment:
        type = None
        length = 0
    def __init__(self):
        self.orig = None
        self.dest = None
        self.segments = []
    def set_orig(self, orig):
        self.orig = orig
    def set_dest(self, dest):
        self.dest = dest
    def get_orig(self):
        return self.orig
    def get_dest(self):
        return self.dest
    def get_segments(self):
        return self.segments